var status = -1;
var selectionLog = [];

function action(c, b, a) {
    if (cm.isQuestActive(32758) && cm.getQuestStatus(32736) == 0) {
        action1(c, b, a)
    } else {
        if (cm.isQuestActive(33015)) {
            action2(c, b, a)
        } else {
            cm.forceForfeitQuest(32792);
            cm.dispose()
        }
    }
}

function action1(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.sendNormalTalk_Bottom("喵~！喵~喵！", 37, 1530050, false, true)
        } else {
            if (status === a++) {
                cm.sendNormalTalk_Bottom("那是……猫咪？那猫咪的叫声怎么有些奇怪？", 56, 0, true, true)
            } else {
                cm.dispose()
            }
        }
    }
}

function action2(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.sendNormalTalk_Bottom("是你吗？", 37, 1530212, false, true)
        } else {
            if (status === a++) {
                cm.sendNormalTalk_Bottom("什么……不是啊……？", 37, 1530303, true, true)
            } else {
                if (status === a++) {
                    cm.sendNormalTalk_Bottom("我问你，我的信是不是被你撕的。真的不是你？那你为什么不敢直视我的眼睛？", 37, 1530212, true, true)
                } else {
                    if (status === a++) {
                        cm.gainExp(Math.pow(cm.getLevel(), 3));
                        cm.forceCompleteQuest(33015);
                        cm.dispose()
                    }
                }
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};